<?php
if(!isset($_COOKIE['message'])) exit('Access Denied.');
list($theme, $content, $url) = explode('<NCG>', $_COOKIE['message']);
$url = '../../'.$url;

?>
<html>
	<head>
		<title>网页提示</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="refresh" content="3; url=<?php echo $url;?>" />
		<script type="text/javascript" src="./../../js/jquery.js"></script>

	<script type="text/javascript">

$(document).ready(function(){
		//alert('pgg');
		var browserwidth = $(window).width();
		var browserheight = $(window).height();
		var cwinwidth = $(".window").width();

		var cwinheight = $(".window").height();
		var left = (browserwidth-cwinwidth)/2;
		var top  = (browserheight-cwinheight)/2;
		//var left = 400;
		//var top = 300;

		$(".window").css("left", left).css("top", top);
		$(".window").show();

});

	</script>
<style type="text/css">
<!--
.window{
	background-color: #D0DEF0;
	width:300px;
	/*padding:2px;*/
	/*margin:5px;*/
	position: absolute;
	/*left:auto;*/
	/*top:auto;*/
	display: none;
}
.content{
	height:150px;
	font-size:14px;
	background-color: white;
	border:2px solid #D0DEF0;
	overflow: auto;
	text-align: center;
}
.title{
	padding:4px;
	font-size:14px;
}
.title img{
	width:14px;
	height:14px;
	float:right;
	cursor:pointer;
}
-->
</style>

	</head>
	<body>
	<div class="window">
      <div class="title"><?php echo $theme;?></div>
	  <div class="content"> <br>
          <br>
          <p><font color="red"><?php echo $content;?></font></p>
      </div>
    </div>
	</body>
</html>